<% content_for :left_sidebar do  %>
  <%= render :partial => "layouts/sidebar/xiwenguanli" %>
<% end %>
<%- model_class = TopNews -%>
<div class="page-header">
  <h1>大图新闻栏</h1>
</div>

<dl class="dl-horizontal">
  <dt><strong>标题:</strong></dt>
  <dd><%= @top_news.title %></dd>
  <dt><strong>内容:</strong></dt>
  <dd><%= @top_news.content %></dd>
  <dt><strong>新闻链接地址:</strong></dt>
  <dd><%= @top_news.link_url %></dd>
  <br>
  <dt><strong>新闻大图-1:</strong></dt>
  <dd>
    <%= image_tag(@top_news.first_image_url, :width => 540, :height => 350) if @top_news.first_image? %>
  </dd>
  <br>
  <dt><strong>新闻大图-2:</strong></dt>
  <dd>
    <%= image_tag(@top_news.second_image_url, :width => 540, :height => 350) if @top_news.second_image? %>
  </dd>
  <br>
  <dt><strong>新闻大图-3:</strong></dt>
  <dd>
    <%= image_tag(@top_news.third_image_url, :width => 540, :height => 350) if @top_news.third_image? %>
  </dd>
  <br>
  <dt><strong>新闻大图-4:</strong></dt>
  <dd>
    <%= image_tag(@top_news.fourth_image_url, :width => 540, :height => 350) if @top_news.fourth_image? %>
  </dd>
  <br>
  <dt><strong>新闻大图-5:</strong></dt>
  <dd>
    <%= image_tag(@top_news.fifth_image_url, :width => 540, :height => 350) if @top_news.fifth_image? %>
  </dd>
  <br>
</dl>


<a class="btn btn-default" href="/admins/top_news"><span class="translation_missing" title="translation missing: zh-CN.helpers.links.back">回退</span></a>
<a class="btn btn-default" href="/admins/top_news/<%= @top_news.id %>/edit"><span class="translation_missing" title="translation missing: zh-CN.helpers.links.edit">编辑</span></a>
<a class="btn btn-danger" data-confirm="Are you sure?" data-method="delete" href="/admins/top_news/<%= @top_news.id %>" rel="nofollow"><span class="translation_missing" title="translation missing: zh-CN.helpers.links.destroy">删除</span></a>

<br><br>